#include <iostream>
#include <algorithm>
using namespace std;

int main() {
  int n, x, y;
  int maxa, maxs, mina, mins;
  
  cin >> n >> x >> y;
  maxa = mina = x + y;
  maxs = mins = x - y;

  while (--n) {
    cin >> x >> y;
    maxa = max(maxa, x + y);
    mina = min(mina, x + y);
    maxs = max(maxs, x - y);
    mins = min(mins, x - y);
  }

  cout << max(maxa - mina, maxs - mins) << endl;
  return 0;
}